package com.xbdun.dao.bmp.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import com.xbdun.dao.bmp.entity.XbdunPlatformInfoDo;

@Mapper
public interface PlatformInfoMapper {
	
	//根据平台编号查询平台基础信息
	@Select("SELECT * FROM xbdun_platform_info WHERE platCode=${code}")
	XbdunPlatformInfoDo getByPlatCode(@Param("code")Integer platCode);
	
	//获取平台的密钥
	@Select("SELECT secretVal FROM xbdun_platform_info WHERE platCode=#{code}")
	public String getByPlatSecretVal(@Param("code")Integer platCode);
}
